﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Page_Usercontrol_ContentHeader : System.Web.UI.UserControl
{
    public string PageTitle
    {
        set;
        get;
    }
    public string GoToLabel
    {
        set;
        get;
    }
    public string GoToLink
    {
        set;
        get;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.Literal_Title.Text = PageTitle;
            if (!string.IsNullOrEmpty(GoToLink) && !string.IsNullOrEmpty(GoToLabel))
            {
                this.Literal_Goto.Text = "<div class='heading_links'><div class='df_btn fl'><a href='" + this.GoToLink + "'><span class='btext'>" + this.GoToLabel + "</span> </a></div> </div>";
                Literal_Goto.Visible = true;
            }
        }
    }
}